package org.hugoduncan.appam.server.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

import org.hugoduncan.appam.server.AppServletRequest;

public class AppServletRequestImpl 
    extends HttpServletRequestWrapper
    implements AppServletRequest
{
    public static final String SC_ATOM_CONTENT_TYPE="application/atom+xml";
    
    private static final String TITLE="Title";

    public AppServletRequestImpl(HttpServletRequest request)
    {
        super(request);
    }
    
    public boolean isAtomContent() {
        return SC_ATOM_CONTENT_TYPE.equals(getContentType());
    }

    public String getTitle() {
        return getHeader(TITLE);
    }

}
